#ifndef COLORTRAY_H
#define COLORTRAY_H

#include <QtGui/QWidget>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>
#include <QIcon>
#include <QMessageBox>
#include <QProcess>
#include <QCoreApplication>
#include <QFile>
#include <QDir>
#include <QSettings>
#include <lcms2.h>

class ColorTray : public QWidget
{
    Q_OBJECT

public:
    ColorTray(QWidget *parent = 0);
    ~ColorTray();

private:
    QSystemTrayIcon *trayIcon;
    QMenu *trayMenu;
    QMenu *trayProfileMenu;
    QMenu *trayMonitor0Menu;
    QMenu *trayMonitor1Menu;
    QMenu *trayMonitor2Menu;
    QMenu *trayMonitor3Menu;

private slots:
    void trayInit();
    void trayAbout();
    void applyProfile(int monitor,QString profile,int save);
    void saveProfile(int monitor,QString profile);
    QString profileName(QString profile);
    void trayGenProfiles(int monitor,QString path);
    void loadProfile();
    void clearProfile();
    void reloadProfiles();
};

#endif // COLORTRAY_H
